<jsp:include page="common/header.jsp"/>
<%@ taglib prefix ="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<s:if test="#session.authentification == true">
<div class="menu">
	<ul>
		<li><a href="ajouterImage">Ajouter une image</a></li>
		<li onclick="setDel();">Supprimer une image</li>
		<li><a href="deconnecterUtilisateur">Deconnexion</a></li>
	</ul>
</div>

<div class="listeImage">
	<s:iterator value="listImage">
  		<div class="imgDiv" id="img_<s:property value="id"/>">
  			
  			
  			<img class="supp" id="<s:property value="id"/>" src="jsp/images/supp.png">

  			<img class="image" src="<s:property value="nom"/>" width="200px">
  		</div>
	</s:iterator>
</div>
<div class="clear"></div>
<div style="display:none;">
	<s:form method ="post" name="formSuppImage" id="formSuppImage" action="suppImage" target="suppIframe">
		<s:textfield cssClass="inputLogin" name="image.id" id="idImg" label="id ">
		</s:textfield>	
		<s:submit value = "Envoyer"></s:submit>
	
	</s:form>
	<iframe id="suppIframe" name="suppIframe"></iframe>	
</div>	
</s:if>	
<jsp:include page="common/footer.jsp"/>